package com.kfirszt.elearning.persistence.dao;

import java.io.Serializable;
import java.util.List;

import com.kfirszt.elearning.persistence.model.BaseEntity;

public interface GenericDAO<T extends BaseEntity, K extends Serializable> {
	
	public T findById(K id);
	
	public List<T> findAll();
	
	public K create(T entity);
	
	public void merge(T entity);
	
	public void delete (T entity);
	
	public void saveOrUpdate(T entity);

}
